package wwl.lsf.hellospringboot.forkjoin;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

public class ParameterNames {
    public void test(String p1, String p2) {
    }

    public static void main(String[] args) throws Exception {
        Method method = ParameterNames.class.getMethod("test", String.class,
                String.class);
        for (Parameter parameter : method.getParameters()) {
            System.out.println(parameter.getName());
        }
        System.out.println(method.getParameterCount());
    }
}